package com.yunhe.assist.client.fallback;

import com.yunhe.assist.client.FirmClient;
import com.yunhe.common.model.ResultObject;
import feign.hystrix.FallbackFactory;
import org.springframework.http.ResponseEntity;

/**
 * @ClassName AuthorityClientFallbackFactory
 * @Description TODO
 * @Author HeTao
 * @Date 2021/11/9 16:22
 * @Version 1.0
 **/
public class FirmClientFallbackFactory implements FallbackFactory<FirmClient> {
    @Override
    public FirmClient create(Throwable cause) {
        return new FirmClient() {

            @Override
            public ResponseEntity<ResultObject> findFirmByStationId(Long stationId) {
                return null;
            }
        };
    }
}
